#pragma once
#include "BaseConstraint.h"

class CDistanceConstraint : public CConstraint
{
public:
	CDistanceConstraint() : CConstraint(2) {}
	~CDistanceConstraint() = default;

	virtual bool initializeConstraint(CParticleData& vParticleData, const std::pair<int, int>& vParticlePair, double vStiffness);
	virtual bool solveConstraintV(CParticleData& vParticleData) override;

private:
	double m_restDistance;
	double m_stiffness;
};